/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufrj.cos.reuse.views.web.beans;

import br.ufrj.cos.reuse.views.engine.entity.Developer;
import br.ufrj.cos.reuse.views.engine.facade.DeveloperFacade;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Rafael
 */
@ManagedBean(name="ListDeveloperBean")
@RequestScoped
public class ListDeveloperBean {
    @EJB
    private DeveloperFacade facade;
    private String developer;

    public String getDeveloper() {
        Developer dev = new Developer();
        dev.setName("Rafael");
        facade.create(dev);
        return dev.getName();
    }

    public void setDeveloper(String developer) {
        this.developer = developer;
    }

    /** Creates a new instance of ListDeveloperBean */
    public ListDeveloperBean() {
    }

}
